<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/30
 * Time: 15:52
 */

namespace App\Http\Controllers\Api;

use App\Services\GroupService;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Lib\Util\ResponseUtil;


class UserGroupController
{
    private $baseGroupService = null;

    public function __construct(GroupService $baseGroupService)
    {
        $this->baseGroupService = $baseGroupService;
    }

    public function getGroupList(Request $request)
    {
        $cityId = $request->cityId;
        $info = $this->baseGroupService->getGroupList($cityId);
        return   ResponseUtil::jsonResponse(true,0,'',$info);
    }
}